<?php
	foreach($slide->result() as $row){
		$slide_id=$row->slide_promotion_id;
		$title=$row->title;
		$desc=$row->description;
	}
?>
		<div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"><i class="fa fa-user fa-fw"></i> Update slide promotion </h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
<form class="form-horizontal" method="post" action="<?php echo base_url(); ?>manage-slide-promotions/update-slide/<?php echo $this -> uri -> segment(3); ?>" enctype="multipart/form-data">	
		<div class="row">
                <div class="col-lg-12">
                	<?php
					//$this->load->view('help/notifications');
                    ?>
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          <?php echo $this -> lang -> line('title_dashboard'); ?> >> <?php echo $this -> lang -> line('title_new_user'); ?>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body form-horizontal">
				
							<!-- Text input-->
							<div class="form-group">
								<label class="col-md-4 control-label" for="title">Title <span class="star_require">*</span></label>
								<div class="col-md-5">
									<input id="title" name="title" placeholder="" class="form-control input-md" type="text" value="<?php echo $title; ?>" required="required">
									<span class="help-block"><?php echo form_error('title'); ?></span>
								</div>
							</div>
							
							<!-- Text input-->
							<div class="form-group">
								<label class="col-md-4 control-label" for="description">Description</label>
								<div class="col-md-5">
									<textarea name="description" id="description" rows="10" class="form-control"><?php echo $desc;?></textarea>
								</div>
							</div>
							
							<!-- Text input-->
							<div class="form-group">
								<label class="col-md-4 control-label" for="userfile">Slide Image <span class="star_require">*</span></label>
								<div class="col-md-5">
									<input id="userfile" name="userfile" class="form-control input-md" type="file"/>
									<span class="help-block"><?php echo form_error('userfile'); ?></span>
								</div>
							</div>
							
                         </div>
                    </div>
                </div>
           </div>
           
           
           
           <div class="row"><!-- Button (Double) -->
							
                <div class="col-lg-12">
                    	<div class="form-group">
								<label class="col-md-4 control-label" for="submit"></label>
								<div class="col-md-8">
									<button id="submit" name="submit" class="btn btn-success" type="submit">
										<i class="fa fa-save fa-fw"></i>
										<?php echo $this -> lang -> line('button_save'); ?>
									</button>
									<button id="clear" name="clear" class="btn btn-warning" type="reset">
										<i class="fa fa-repeat fa-fw"></i>
										<?php echo $this -> lang -> line('button_clear'); ?>
									</button>
								</div>
							</div>
                </div>
                <!-- /.col-lg-12 -->
            </div>
</form>                   	
			